//package com.example.demo.redis.service.impl;
//
//import com.example.demo.entiy.User;
//import com.example.demo.redis.repository.UserRedisRepository;
//import com.example.demo.redis.service.RedisUserService;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//
//@Service
//public class RedisUserServiceImpl implements RedisUserService {
//
//    @Resource
//    private UserRedisRepository userRepository;
//
//    @Override
//    public User findone(Long id) {
//        return userRepository.findOne(id);
//    }
//}
